<?php
$validation_type = 1;

if($validation_type ==1){
	$mime = array ("image/gif" => "gif",
					"image/jpeg" => "jpeg", 
					"image/png" => "png", 
					"image/bmp" =>"bmp", 
					"image/psd"=>"psd",
					"image/tiff"=>"tiff", 
					"image/jp2" => "jp2",
					"image/vnd.wap.wbmp"=> "bmp", 
					"image/vnd.microsoft.icon" => "ico",
					"image/iff" => "iff"
					/*Ignore this.. 
					* "application/x-shockwave-<a                         
					*href='http://www.bitrepository.com/recommends/flabell'
					*style='' rel='nofollow'
					*onmouseover='self.status='http://www.bitrepository.com/recommends/flabell';return
					*true;' onmouseout='self.status=""'>flash</a>" =>  
					*'swf',
				 	*/);					
}else if ($validation_type == 2) {
	$image_extensions_allowed = array("jpg", "jpeg", "png", "bmp", "gif");	
}